package winterTest.day09;

public class Person {
	public void hit(Animal animal) {
		if(animal instanceof Cat) {
			((Cat)animal).shoot();
		}else if(animal instanceof Dog) {
			((Dog)animal).shoot();
		}
	}
}
